package day10;

public class zuoye {
	public static void main(String[] args) {
		int start = 0;

		String str = "   java Andorid   ";

		char[] array = str.toCharArray();
		int end = str.length();
		for (char c : array) {
			
		
			if (c == ' ') {

				start++;
			} else {
				break;

			}

		}
		for (int i = array.length - 1; i >= 0; i--) {
			if (array[i] == ' ') {

				end--;
			} else {
				break;

			}
		}
		System.out.println(str.substring(start, end));
	}
}